package com.ruoyi.paper.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.paper.mapper.ExamFolderMapper;
import com.ruoyi.paper.domain.ExamFolder;
import com.ruoyi.paper.service.IExamFolderService;
import com.ruoyi.common.core.text.Convert;

/**
 * 试卷目录Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-14
 */
@Service
public class ExamFolderServiceImpl implements IExamFolderService 
{
    @Autowired
    private ExamFolderMapper examFolderMapper;

    /**
     * 查询试卷目录
     * 
     * @param folderId 试卷目录主键
     * @return 试卷目录
     */
    @Override
    public ExamFolder selectExamFolderByFolderId(String folderId)
    {
        return examFolderMapper.selectExamFolderByFolderId(folderId);
    }

    /**
     * 查询试卷目录列表
     * 
     * @param examFolder 试卷目录
     * @return 试卷目录
     */
    @Override
    public List<ExamFolder> selectExamFolderList(ExamFolder examFolder)
    {
        return examFolderMapper.selectExamFolderList(examFolder);
    }

    /**
     * 新增试卷目录
     * 
     * @param examFolder 试卷目录
     * @return 结果
     */
    @Override
    public int insertExamFolder(ExamFolder examFolder)
    {
        return examFolderMapper.insertExamFolder(examFolder);
    }

    /**
     * 修改试卷目录
     * 
     * @param examFolder 试卷目录
     * @return 结果
     */
    @Override
    public int updateExamFolder(ExamFolder examFolder)
    {
        return examFolderMapper.updateExamFolder(examFolder);
    }

    /**
     * 批量删除试卷目录
     * 
     * @param folderIds 需要删除的试卷目录主键
     * @return 结果
     */
    @Override
    public int deleteExamFolderByFolderIds(String folderIds)
    {
        return examFolderMapper.deleteExamFolderByFolderIds(Convert.toStrArray(folderIds));
    }

    /**
     * 删除试卷目录信息
     * 
     * @param folderId 试卷目录主键
     * @return 结果
     */
    @Override
    public int deleteExamFolderByFolderId(String folderId)
    {
        return examFolderMapper.deleteExamFolderByFolderId(folderId);
    }
}
